package pers.vic.base.annoation;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

import com.fasterxml.jackson.annotation.JacksonAnnotationsInside;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import pers.vic.base.handle.convert.AppendJsonFieldSerialize;

/**
 * 追加JSON字段的的注解 基于JACKSON
 * @author VIC
 */
@Retention (RetentionPolicy.RUNTIME)
@JacksonAnnotationsInside
@JsonSerialize (using = AppendJsonFieldSerialize.class)
public @interface AppendJsonField {
	
	//转JSON时候的key
	String key();
	
	//转JSON时候的key:value; 形如{"1:描述1","2:描述2"}
	String[] keyValyeDesc() default {};
	
	
}
